package com.ruoyi.depot.service.impl;

import com.ruoyi.depot.domain.LocalInventoryReservedLog;
import com.ruoyi.depot.mapper.LocalInventoryReservedLogMapper;
import com.ruoyi.depot.service.ILocalInventoryReservedLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 库存Service业务层处理
 * 
 * @author luxiaoyu
 * @date 2024-12-19
 */
@Service
public class LocalInventoryReservedLogServiceImpl implements ILocalInventoryReservedLogService
{

    @Autowired
    private LocalInventoryReservedLogMapper localInventoryReservedLogMapper;

    /**
     * 插入预约量/锁定量
     */
    @Override
    public int insertReservedLog(LocalInventoryReservedLog log) {
        return localInventoryReservedLogMapper.insertReservedLog(log);
    }
    /**
     * 查询预定量/锁定量变动记录
     */
    @Override
    public List<LocalInventoryReservedLog> listReservedQuantityLog(LocalInventoryReservedLog inventoryReservedLog) {
        return localInventoryReservedLogMapper.listReservedQuantityLog(inventoryReservedLog);
    }

}
